package com.cty.pojo;

import org.apache.log4j.Logger;

/**
 * @Auther: cty
 * @Date: 2020/3/5 18:29
 * @Description:  静态工厂
 * @version: 1.0
 */
public class PeopleStaticFactory {
    Logger log = Logger.getLogger(PeopleStaticFactory.class);
    public PeopleStaticFactory() {
        super();
        log.debug("执行PeopleStaticFactory无参构造");
    }

    /**
     * 生产People对象方法
     * @return
     */
    public static People newInstance(){
        return new People(3, "静态工厂People");
    }
}
